projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd43e9c
)
a11y: Ignore widgets during destruction
author
Emmanuele Bassi
<ebassi@gnome.org>
Fri, 9 Oct 2020 11:33:50 +0000
(12:33 +0100)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Mon, 12 Oct 2020 15:19:32 +0000
(16:19 +0100)
There's no point in creating a GtkATContext when a widget is getting
destroyed.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index b6489a284a93ea94a836c9ecd9f4064602f00fec..af1f84c05136ca98c34eb435dbc8745cbae0773d 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-8091,6
+8091,9
@@
gtk_widget_accessible_get_at_context (GtkAccessible *accessible)
GtkWidget *self = GTK_WIDGET (accessible);
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (self);
+ if (priv->in_destruction)
+ return NULL;
+
if (priv->at_context == NULL)
{
GtkWidgetClass *widget_class = GTK_WIDGET_GET_CLASS (self);